<?php

namespace app\admin\controller;

use think\Cache;
use think\Controller;
use think\Session;

class DelRedis extends Controller
{
    public function del()
    {
        if(Cache::store('redis')->get(config('redis.save_menus').'_'.Session::get(config('user.user_id')))){
            Cache::store('redis')->rm(config('redis.save_menus').'_'.Session::get(config('user.user_id')));
        }
    }
}